Q: How do I get the full pathname of the executable file's directory from within my application after it has been launched?\
\
A: Here is a sample function that does this. If the application is launched from the Workspace, NXArgv[0] will contain the full pathname of the executable file. If you launch the application from a terminal command line, NXArgv[0] will contain only the filename specified in the command. To get from that filename to the absolute path of its directory, you can use a combination of which, chdir() and getwd() .\